import type { AuthApi } from '#/api/core/model/userModel'

export interface RoleItem extends AuthApi.actionRecord {
    id: number
    mark: number
    name: string
    code: string
    status: number
    note: null | string
    sort: number
}

export interface RolePermissionItem extends AuthApi.actionRecord {
    id: number
    mark: number
    pid: number
    title: string
    icon: string
    path: string
    component: null | string
    target: string
    permission: string
    type: number
    status: number
    note: null | string
    sort: number
    children: null | RolePermissionItem[]
    checked: boolean
    open: boolean
    checkedList: null | RolePermissionItem[]
}
